﻿@{
    ViewBag.Title = "AccessoriesEnther";
    Layout = "~/Views/Shared/_ManufactureList.cshtml";
}

 


<script>
    var moduleId = $.request("moduleId");
    $(function () {
        gridList();
    })
    function gridList() {
        $("#gridList").dataGrid({
            treeGrid: true,
            treeGridModel: "adjacency",
            ExpandColumn: "F_Location",
            url: "/SystemManage/ModuleButton/GetTreeGridJson?moduleId=" + moduleId,
            height: $(window).height() - 95,
            colModel: [
               {
                   label: "<img src='../../Content/img/checkokmark.gif'/> 全选", name: 'F_JsEvent', width: 60, align: 'left',
                   formatter: function (cellvalue) {
                       if (cellvalue == 1) {
                           return "<img src='../../Content/img/checkokmark.gif'/>";
                       } else {
                           return "<img src='../../Content/img/checknomark.gif'/>";
                       }
                   }
               },
            { label: "来料单位", name: "F_FullName", width: 120, align: 'left' },
            { label: "来料单位名称", name: "F_FullName", width: 120, align: 'left' },
            { label: '入库日期', name: 'F_FullName', width: 100, align: 'left' },
            { label: '来料编号', name: 'F_Location', width: 80, align: 'left' },
            { label: '来料名称', name: 'F_JsEvent', width: 100, align: 'left' },
            { label: '批次号', name: 'F_Split', width: 80, align: 'left' },
            { label: '开票数量', name: 'F_Split', width: 80, align: 'left' },
            { label: '实际数量', name: 'F_IsPublic', width: 80, align: 'left' },
            { label: '仓库编号', name: 'F_AllowEdit', width: 80, align: 'left' },
            { label: '库位名称', name: 'F_AllowDelete', width: 80, align: 'left' },
            { label: '容器编号', name: 'F_AllowEdit', width: 80, align: 'left' },
            { label: '容器名称', name: 'F_AllowDelete', width: 80, align: 'left' },

            { label: '容器数量', name: 'F_Split', width: 80, align: 'left' },
            { label: '实际装箱', name: 'F_Split', width: 80, align: 'left' },
            { label: '标准装箱', name: 'F_IsPublic', width: 80, align: 'left' },
            { label: '托盘编号', name: 'F_AllowEdit', width: 80, align: 'left' },
            { label: '托盘数量', name: 'F_AllowDelete', width: 80, align: 'left' },

            { label: '实际容量', name: 'F_Split', width: 80, align: 'left' },
            { label: '标准容量', name: 'F_Split', width: 80, align: 'left' },
            { label: '凭证编号', name: 'F_IsPublic', width: 80, align: 'left' },
            { label: '备注', name: 'F_AllowEdit', width: 80, align: 'left' },
            { label: '供货单位', name: 'F_AllowDelete', width: 80, align: 'left' },

            { label: '供货单位名称', name: 'F_UrlAddress', width: 80, align: 'left' },
            { label: '零件状态', name: 'F_Split', width: 80, align: 'left' },
            { label: '是否烫标', name: 'F_IsPublic', width: 80, align: 'left' },
            { label: '是否托盘', name: 'F_AllowEdit', width: 80, align: 'left' },
            { label: '是否打包', name: 'F_AllowDelete', width: 80, align: 'left' },
            { label: '输入人员', name: 'F_Split', width: 80, align: 'left' },
            { label: '输入日期', name: 'F_IsPublic', width: 80, align: 'left' },
            { label: '输入时间', name: 'F_AllowEdit', width: 80, align: 'left' },
            ]
        });
    }
    function btn_Add() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/EnterWareHouse/WareHouseReturnRemainInput"
        });
    }
    function btn_Modi() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/EnterWareHouse/WareHouseReturnRemainModi"
        });
    }
    function btn_Delete() {
        alert("确定要删除吗？");//在页面上弹出上联
    }

    function btn_Check() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/EnterWareHouse/WareHouseReturnRemainCheck"
        });
    }
    function btn_Excel() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/Export/WareHouseNoticeExcel"
        });
    }
    function btn_Print() {
        $.detailOpen({
            id: "Detail",
            title: "",
            url: "/WareHouse/Print/WareHouseNoticePrint"
        });
    }
</script>



<body>
    <div id="layout" style="height: 100%; width: 100%;">
        <form id="form1">
            <div style="padding: 12px 0 5px 0; padding-left:15px; border-bottom:1px solid #ccc;" class="line-table input-width-140">
                <div class="btn-group" style="margin-right:20px;margin-top:-5px;">
                    <input id="radio11" class="category" name="category" type="radio" value="登记" checked="checked" /><label for="radio11" class="suffix">登记</label><br />
                    <input id="radio12" class="category" name="category" type="radio" value="档案" /><label for="radio12" class="suffix">档案</label> &nbsp;&nbsp;&nbsp;
                </div>
                <div class="btn-group" style="margin-top:-9px;">
                    来料单位<br /><input id="" name="" placeholder="" type="text" class="form-control required" /> &nbsp;
                </div>
                <div class="btn-group" style="margin-top:-9px;">
                    材料牌号<br /><input id="" name="" placeholder="" type="text" class="form-control required" /> &nbsp;
                </div>
                <div class="btn-group" style="margin-top:-9px;">
                    来料日期<br /><input id="" name="" placeholder="" type="text" class="form-control required" /> &nbsp;
                </div>
                <div class="btn-group">
                    <a id="" class="btn btn-primary center-block" onclick=""><span class="glyphicon glyphicon-search"></span> 查询</a>
                </div>
                <div class="btn-group" style="float:right;">
                    <a class="btn btn-primary center-block" onclick="$.reload()">  <span class="glyphicon glyphicon-refresh"> </span>&nbsp刷新</a>
                    <a class="btn btn-primary center-block" onclick="btn_Add()">   <span class="glyphicon glyphicon-plus">    </span>&nbsp输入</a>
                    <a class="btn btn-primary center-block" onclick="btn_Modi()">  <span class="glyphicon glyphicon-edit">    </span>&nbsp修改</a>
                    <a class="btn btn-primary center-block" onclick="btn_Delete()"><span class="glyphicon glyphicon-trash">   </span>&nbsp删除</a>
                    <a class="btn btn-primary center-block" onclick="btn_Check()"><span class="glyphicon glyphicon-trash">   </span>&nbsp审核</a>
                    <a class="btn btn-primary center-block" onclick="btn_Excel()"> <span class="glyphicon glyphicon-download"></span>&nbsp导出</a>
                    <a class="btn btn-primary center-block" onclick="btn_Print()"> <span class="glyphicon glyphicon-print">   </span>&nbsp打印</a>
                </div>
            </div>
            <div class="gridPanel">
                <table id="gridList"></table>
            </div>
        </form>
    </div>
</body>